<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Insert title here</title>
</head>
<body>
	<%
	String name = "admin";
	// 创建cookie
	Cookie cookie = new Cookie("username", name);
	cookie.setMaxAge(24 * 3600);
	// 添加cookie
	response.addCookie(cookie);
	%>

	<!-- 缓冲区配置  -->
	<%-- <%
	out.print("缓冲区大小："+response.getBufferSize()+"<br>");
	out.print("缓冲区设置之前");
	out.print("输出的内容是否提交：："+response.isCommitted()+"<br>");
	response.flushBuffer();
	out.print("缓冲区设置之后");
	out.print("输出的内容是否提交：："+response.isCommitted()+"<br>");
	%> --%>


	<%-- <%
		if(request.getParameter("submit")!=null){
			response.setContentType("application/msword;charset=utf-8");
		}
	%>
	
	好好学习！
	<form action="" method="post">
	<input name="submit" type="submit" value="保存为word">
	</form> --%>

	<!-- <form action="response_detail.jsp" method="post">
	用户名：<input type="text" name="username">
	密码：<input type="password" name="password">
	<input type="submit" value="提交">
	</form> -->
</body>
</html>